package Frame.sayoptional;

import lombok.Getter;
import lombok.Setter;

public class SayTextAndOption {

    public String optionType;

    public int optionNum = 0;

    public String optionTextId;//对应的是lang的id,点击了option就会反馈对话optionTextRepo
    public String sayTextId;
    public String optionTextRepoId;
    public String ctrlType;

    //补充的要是要花钱的类型或者是转event的
    @Getter
    @Setter
    public int needMoney = 0;
    @Getter
    @Setter
    public String eventId;

    @Getter
    @Setter
    public boolean removable = false;//表示点击完这个选项是否就永久移除掉这次的事件
    @Getter
    @Setter
    public String param;

    public SayTextAndOption(String type, String sayTextId,int num, String repoSayId){
        optionType = type;
        optionNum = num+1;
        optionTextId = sayTextId+"option"+optionNum;//参考ch.vw的 home2sistersay1option1=好啊!走吧!
        optionTextRepoId = repoSayId;
        this.sayTextId = sayTextId;
    }

    public SayTextAndOption(String type, String sayTextId,int num, String repoSayId, String ctrl){
        this(type,sayTextId,num,repoSayId);
        ctrlType = ctrl;
    }

    public SayTextAndOption resetOptionTextId(String optionTextId){
        this.optionTextId = optionTextId;
        return this;
    }
}
